// 入口文件
import Vue from 'vue'
import app from './App.vue'
import { Header,Swipe, SwipeItem,Button} from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Header.name, Header);
Vue.component(Button.name, Button);
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import VueRouter from 'vue-router'
import router from './router.js'
Vue.use(VueRouter)
import VueRousource from 'vue-resource'
Vue.use(VueRousource)
Vue.http.options.root='http://www.liulongbin.top:3005/'

import moment from 'moment'
Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
     return moment(dataStr).format(pattern)
})
var vm=new Vue({
    el:'#app',
    render:c=>c(app),
    router
})